﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Space_Conquest
{

    /// <summary>
    /// A Client request to join a server's game
    /// </summary>
    [Serializable]
    class MultiplayerRequest
    {

        public string PlayerName;
        public string MyIP;

    }

    /// <summary>
    /// Response from server to a connection request
    /// </summary>
    [Serializable]
    class MultiplayerResponse
    {

        public bool AcceptedRequest;
        public int PlayerNumber;
        public string MapName;
        public string MapHash;
        public string TargetIP;

    }

    /// <summary>
    /// Holds information about a multiplayer game that is updated before a game starts
    /// </summary>
    [Serializable]
    class MultiplayerStatus
    {

        public bool StartGame;
        public List<string> PlayerNames;

        public MultiplayerStatus()
        {

            StartGame = false;
            PlayerNames = new List<string>();

        }

    }

}
